package com.clarencezero.mylover.config.springsecurity;

import org.springframework.security.core.context.SecurityContextHolder;

public class UserUtils {
    public static MyUserDetails getCurrentUser() {
        return (MyUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
